gtkmain: short-circuit gtk_main_sync() where no display
authorChristian Hergert <chergert@redhat.com>
Fri, 10 Jan 2020 23:00:10 +0000 (15:00 -0800)
committerChristian Hergert <chergert@redhat.com>
Fri, 10 Jan 2020 23:00:10 +0000 (15:00 -0800)
commit4a7f68e79e0c2a56eb1297e72a33cbdcd68418ba
tree8000e3cf8fa8973c2ab2b107d1fd46dfc87cff3e
parentf0cbd175cdf1f7655c0c0ce3beb3eadc9b4c97e4
gtkmain: short-circuit gtk_main_sync() where no display

If there is no display, we will hit the slow path here which
can introduce long latencies in unit tests. This checks for
a NULL list of displays and simply short-circuits.
gtk/gtkmain.c